package org.yonggan.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.yonggan.ExcludeFromComponentScan;

import com.netflix.client.config.IClientConfig;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;

/**
 * @author 上海尚学堂勇敢老师
 * 了解更多添加微信号：java8733
 */
@Configuration
@ExcludeFromComponentScan
public class TestConfiguration {
	
	@Autowired
	private IClientConfig config;
	
	@Bean
	public IRule ribbonRule(IClientConfig config) {
		return new RandomRule();
	}
	
}
